package com.bcu.calculus.mapper;

import com.bcu.calculus.entity.Slist;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SlistMapper {
    int deleteByPrimaryKey(String slistId);

    int insert(Slist record);

    int insertSelective(Slist record);

    Slist selectByPrimaryKey(String slistId);

    List<Slist> selectAll();

    int updateByPrimaryKeySelective(Slist record);

    int updateByPrimaryKey(Slist record);

    List<Slist> getSlistByFlistId(String flistId);

    Slist getSlistByTlistId(String tlistId);

    List<Slist> getSlistByuerTypeAndFlistId(@Param("userType")String userType, @Param("flistId")String flistId);

    List<String> getFlistIdByUserType(String userType);

    List<Slist> getSlistByUserType(String userType);

    List<Slist> getSlistByType(Integer type);
}